| Fully Qualified Name: | Laminas\View\Helper\Partial |
| Extends: | AbstractHelper |
Helper for rendering a template fragment in its own variable scope.
| Name | Description | Defined By |
|---|---|---|
| __invoke() | Renders a template fragment within a variable scope distinct from the calling View object. It proxies to view's render function | Partial |
| getObjectKey() | Retrieve object key | Partial |
| getView() | Get the view object | AbstractHelper |
| setObjectKey() | Set object key | Partial |
| setView() | Set the View object | AbstractHelper |
Renders a template fragment within a variable scope distinct from the calling View object. It proxies to view's render function
| Parameter Name | Type | Description |
|---|---|---|
| $name | string|\ModelInterface | Name |
| $values | array|object | Variables |
Returns: string|\Partial
Retrieve object key
The objectKey is the variable to which an object in the iterator will be assigned.
Returns: null|string
Get the view object
Returns: null|\Renderer
Set object key
| Parameter Name | Type | Description |
|---|---|---|
| $key | string|null |
Returns: self
Set the View object
| Parameter Name | Type | Description |
|---|---|---|
| $view | \Renderer |
Returns: \AbstractHelper